<?
if (empty($_SESSION[uid]))
    header("Location: login.php");

$userpower=$_SESSION[upower];
$username=$_SESSION[uid];
?>